from django.db import models

# Create your models here.
from utils.base_model import BaseModel
from user.models import User

class OAuthQQUser(BaseModel):
    user = models.ForeignKey('user.User', on_delete=models.CASCADE, verbose_name='美多用户')
    openid = models.CharField(max_length=64, verbose_name='openid')

    class Meta:
        db_table = 'tb_oauth_qq'
class OAuthSinaUser(BaseModel):
    user = models.ForeignKey('user.User', on_delete=models.CASCADE, verbose_name='美多用户')
    uid = models.CharField(max_length=64, verbose_name='uid')

    class Meta:
        db_table = 'tb_oauth_sina'